.pages {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-y: scroll;
    padding-bottom: 45px;
    &::-webkit-scrollbar {
        display: none;
    }
}

footer.footer ~ .pages {
    padding-bottom: 50px + 45px;
}

.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.color-primary {
    color: $color-primary;
    &.btn {
        background: $color-primary;
    }
}

.btn[class*='color-'] {
    color: #fff !important;
}

.font10 {
    font-size: 10px;
}

.font12 {
    font-size: 12px;
}

.font14 {
    font-size: 14px;
}

.font16 {
    font-size: 16px;
}

.clear {
    @extend %clear;
}

.ellipsis {
    @extend %ellipsis;
}

.color-gray{
    color: $color-gray;
}

.overflow-hidden {
    overflow: hidden;
}

//统一列表间距
.mt-unify {
    margin-top: 5px;
}

//模拟表单输入框 placeholder
.placeholder {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 70%;
    padding-right: 15px;
    border: 0;
    @extend %ellipsis;
    &.color-gray {
        color: #A9A9A9;
    }
}

//向右绝对居中
.absmiddle-right {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
}

//向左绝对居中
.absmiddle-left {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
}

.btn-bottom {
    height: 45px;
    > * {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 99;
        width: 100%;
        height: 45px;
        background: $color-primary;
        color: #fff;
        font-size: 16px;
        line-height: 45px;
        text-align: center;
        border: none;
    }
    button{
        padding:0;
    }
}

.btn-bottom-double {
    height: 45px;
    > * {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 45px;
        font-size: 16px;
        line-height: 45px;
        text-align: center;
        border: none;
        @extend %flex1;
        > * {
            &.color-primary {
                background: $color-primary;
                color: #fff;
            }
            &.color-gray {
                background: #ccc;
                color: #fff;
            }
        }
    }
}

//多行文本垂直居中
@at-root .vertical-center {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

//多行文本垂直两端对齐
@at-root .vertical-between {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

//多行文本两端对齐
@at-root .justify-between {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

//文本对齐容器底部
@at-root .align-end {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}